
function factory (sendAuthCode) {
  return function (req, res) {
    req.session.authCode = sendAuthCode(req.query.email)
    res.send('1')
  }
}

module.exports = factory
